package com.lowan.iot.mqtt.sdk.init;

import com.lowan.lib.mqtt.MqttConnOpts;
import lombok.Builder;

/**
 * @author y_sp
 * @date 2022 一月
 *
 * 初始化示例
 * 文档参照 @see https://doc.lowaniot.com/#/platform-access/MQTT-subscribe.html
 */
@Builder
public class InitExample {

    private static final String MQTT_BROKER = "tcp://mqtt.lowaniot.com:1883";

    // 可通过罗万智联平台获取
    private static final String MQTT_USER = "${username}";

    // 可通过罗万智联平台获取
    private static final String MQTT_PASSWORD = "${password}";

    static {
        // mqtt init
        MqttConnOpts.setParams(MQTT_BROKER,MQTT_USER,MQTT_PASSWORD);
    }


}
